<!DOCTYPE html>
<html>
  <head>
    <title>主页</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <link href="resources/css/jquery-ui-themes.css" type="text/css" rel="stylesheet"/>
    <link href="resources/css/axure_rp_page.css" type="text/css" rel="stylesheet"/>
    <link href="data/styles.css" type="text/css" rel="stylesheet"/>
    <link href="files/主页/styles.css" type="text/css" rel="stylesheet"/>
    <script src="resources/scripts/jquery-1.7.1.min.js"></script>
    <script src="resources/scripts/jquery-ui-1.8.10.custom.min.js"></script>
    <script src="resources/scripts/prototypePre.js"></script>
    <script src="data/document.js"></script>
    <script src="resources/scripts/prototypePost.js"></script>
    <script src="files/主页/data.js"></script>
    <script type="text/javascript">
      $axure.utils.getTransparentGifPath = function() { return 'resources/images/transparent.gif'; };
      $axure.utils.getOtherPath = function() { return 'resources/Other.html'; };
      $axure.utils.getReloadPath = function() { return 'resources/reload.html'; };
    </script>
  </head>
  <body>
    <div id="base" class="">
		<?php require("../../../conn/conn.php");
               	$sql = "select * from work_info where stu_id is null";
               	$result = mysqli_query($conn,$sql);?>
      <!-- 搜索 (组 合) -->
      <div id="u0" class="ax_default" data-label="搜索" data-left="84" data-top="100" data-width="564" data-height="65">

        <!-- Unnamed (矩形) -->
        <div id="u1" class="ax_default box_1">
          <div id="u1_div" class=""></div>
        </div>

        <!-- Unnamed (文本框) -->
		<form action="所有家教.php" method="post">
        <div id="u2" class="ax_default text_field">
          <input id="u2_input" type="text" value="" name="search"/>
		  <input style="width: 104px;height:43px;
		  left: 2520px;margin-left: 550px;font-size:25px;" type="submit" name="sub" value="搜索">
        </div>
		
		</form>
      </div>
		
      <!-- Unnamed (形状) -->
      <div id="u3" class="ax_default icon">
        <img id="u3_img" class="img " src="images/主页/u3.png"/>
      </div>

      <!-- 坐标 (矩形) -->
      <div id="u4" class="ax_default label" data-label="坐标">
        <div id="u4_div" class=""></div>
        <div id="u4_text" class="text ">
          <p><span>福州</span></p>
        </div>
      </div>

      <!-- 首页图 (图片) -->
      <div id="u5" class="ax_default image" data-label="首页图">
        <img id="u5_img" class="img " src="images/主页/首页图_u5.png"/>
      </div>

      <!-- 家长直招 (组 合) -->
      <div id="u6" class="ax_default" data-label="家长直招" data-left="48" data-top="654" data-width="145" data-height="160">

        <!-- Unnamed (形状) -->
        <div id="u7" class="ax_default icon">
          <img id="u7_img" class="img " src="images/主页/u7.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u8" class="ax_default label">
          <div id="u8_div" class=""></div>
          <div id="u8_text" class="text ">
            <p><span>家长直招</span></p>
          </div>
        </div>
      </div>

      <!-- 机构家教 (组 合) -->
      <div id="u9" class="ax_default" data-label="机构家教" data-left="418" data-top="654" data-width="145" data-height="160">

        <!-- Unnamed (形状) -->
        <div id="u10" class="ax_default icon">
          <img id="u10_img" class="img " src="images/主页/u10.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u11" class="ax_default label">
          <div id="u11_div" class=""></div>
          <div id="u11_text" class="text ">
            <p><span>机构家教</span></p>
          </div>
        </div>
      </div>

      <!-- 附近家教 (组 合) -->
      <div id="u12" class="ax_default" data-label="附近家教" data-left="787" data-top="654" data-width="145" data-height="160">

        <!-- Unnamed (形状) -->
        <div id="u13" class="ax_default icon">
          <img id="u13_img" class="img " src="images/主页/u13.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u14" class="ax_default label">
          <div id="u14_div" class=""></div>
          <div id="u14_text" class="text ">
            <p><span>附近家教</span></p>
          </div>
        </div>
      </div>

      <!-- Unnamed (动态面板) -->
      <div id="u15" class="ax_default">
        <div id="u15_state0" class="panel_state" data-label="State1" style="">
          <div id="u15_state0_content" class="panel_state_content">

            <!-- Unnamed (矩形) -->
            <div id="u16" class="ax_default label">
              <div id="u16_div" class=""></div>
              <div id="u16_text" class="text ">
               	<?php $work_info = array();
               	while($row = mysqli_fetch_assoc($result)){
               		$work_info[] = $row;
               	}
               	foreach($work_info as $row){ 
               		if($row['par_id']){?>
            		<form action="../../detail/work_detail/html/index.php" method="post">
            			<div style="width: 800px;">
            				<p style="float: right;" style="font-size: 50px;"><?= $row['work_price']; ?>元/天</p>
            				<h1 align="left"><?=$row['work_name']; ?></h1>
            				<p ><?= $row['work_place'];?></p>
            				
            				<!-- 将该段段id提交给php-->
            				
            				<input type="hidden" value="<?= $row['work_id'];?>" name="id">
            				<input type="submit" name="sub" value="了解详情" style="zoom: 250%;">
							<hr>
            				</form>
            				
            			</div>
            		<?php }} ?>
              </div>
            </div>
          </div>
        </div>
      </div>

      <!-- 导航栏 (组 合) -->
      <div id="u17" class="ax_default" data-label="导航栏" data-left="0" data-top="1951" data-width="980" data-height="171">

        <!-- Unnamed (形状) -->
        <div id="u18" class="ax_default icon">
          <img id="u18_img" class="img " src="images/主页/u18.png"/>
        </div>

        <!-- Unnamed (形状) -->
        <div id="u19" class="ax_default icon">
          <img id="u19_img" class="img " src="images/主页/u19.png"/>
        </div>

        <!-- Unnamed (形状) -->
        <div id="u20" class="ax_default icon">
          <img id="u20_img" class="img " src="images/主页/u20.png"/>
        </div>

        <!-- Unnamed (形状) -->
        <div id="u21" class="ax_default icon">
          <img id="u21_img" class="img " src="images/主页/u21.png"/>
        </div>

        <!-- Unnamed (形状) -->
        <div id="u22" class="ax_default icon">
          <img id="u22_img" class="img " src="images/主页/u22.png"/>
        </div>

        <!-- Unnamed (水平线) -->
        <div id="u23" class="ax_default line">
          <img id="u23_img" class="img " src="images/主页/u23.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u24" class="ax_default box_1">
          <div id="u24_div" class=""></div>
        </div>
      </div>
    </div>
  </body>
</html>
